package com.infore.operation.service;

import com.infore.operation.entity.*;
import com.infore.operation.entity.vo.LoginUser;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author:wk
 * @date:Created in 14:06 2018\4\16 0016
 */
public interface UserService {

    LoginUser login(String account,String password);

    List<Person> queryLowPson(String userId);

    List<Person> queryHeadPson(String userId,Integer stationId);

    List<Branch> queryBranchByUserId(String userId);

    List<OpCenPerson> queryPsonByBranchId(String userId,String branchId);

    void changePassword(String userId,String oldPwd,String newPwd);

    void saveHeadImage(String userId, MultipartFile file);

    void saveGPS(String userId,String lnt,String lat,String address);

    List<PositionPerson> queryPsonByUserId(String userId,Integer pageNum,String keyword);

    List<PositionPerson> queryNearPson(String userId,String lat, String lnt);

    boolean verifyCode(String phoneNum);

    boolean checkCodeAndChangePassword(String phoneNum, String code, String password);

    List<FaultLevel> queryBranchByMtStock(String userId);
    
    List<EquipReason> queryReason(Integer modelId);
    
    List<EquipReason> queryReason1(Integer modelId,String reason);
    
    Integer insertEquipReason(EquipReason reason);
    
    Integer insertEquipLog(EquipLog log);
    
    Integer queryPsonCountByUserId(int userId);
    
    List<Equip> queryAllEquip();
    
    void updateAllEquip(List<Equip> list);
}
